package mybatis.service;

import mybatis.dao.OrderDao;
import mybatis.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author zhangzg
 * @date 2023/4/4
 */

@Component
public class UserService {

    @Autowired
    private UserDao userDao;

    @Autowired
    private OrderDao orderDao;

    public String testUserDao(){
        String user = userDao.selectById();
        System.out.println(user);
        String order = orderDao.selectById();
        System.out.println(order);
        return "";
    }

}
